﻿#ifndef TM_RECTITEM_H
#define TM_RECTITEM_H

#include <QGraphicsItem>
#include <QObject>
#include "common.h"

class TM_RectItem : public QGraphicsItem
{
public:
    TM_RectItem(qreal PointWidth, qreal PointHeight,qreal Radius,QString text,bool move);

public:
    qreal m_X;
    qreal m_Y;
    qreal m_W;
    qreal m_H;
    qreal m_radius = 0;
    QString m_Text;

    bool is_Ckeck = false;
protected:
    QRectF boundingRect()const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
};

#endif // TM_RECTITEM_H
